package com.ms.game.slot.base;

import java.util.ArrayList;

public class SlotBaseBounsCounter 
{
	private ArrayList<Bouns> list;
	public ArrayList<Bouns> getBonusBingo(ArrayList<Integer> bingosymbol , int minBingoSize  ,  ArrayList<Integer> screen)
	{
		list = new ArrayList<Bouns>();
		
		for(int id:bingosymbol)
		{
					int combo = 0;
					ArrayList<Integer> screenidx = new ArrayList<Integer>();
					for(int i=0;i<screen.size();i++)
					{
						if(id ==  screen.get(i))
						{
							combo++;
							screenidx.add(i);
						}
					}
					
					if(combo >=minBingoSize)
					{
						Bouns bouns = new Bouns();
						bouns.symbol = id;
						bouns.screenidx = screenidx;
						list.add(bouns);
					}
		}
		
		
		return list;
	}
}
